'''
Created on 2009-6-29

@author: steven
'''

def listDirectory(directory, fileExtList):
    """get list of file info objects for files of particular extensions"""
    
    fileList = [os.path.normcase(f) for f in os.listdir(directory)]
    fileList = [os.path.join(directory, f) for f in fileList if os.path.splitext(f)[1] in fileExtList]
    

try:
    fs = open("nothere","r")
    print fs.read()
except IOError:
    print "The file %s is gone!"%"nothere"
    
print "all here"
    
